package com.bbcare.followup.plat.entity;

import java.io.Serializable;

import javax.persistence.Entity;

import com.bbcare.comm.DateUtil;

/**
 * @name: 患者信息实体类
 * @author: DemonLee
 * @createTime: 2017.4.11
 * @description: 患者建档基本信息等
 * @modify:
 * 
 */

@Entity
public class Patient implements Serializable {
    private static final long serialVersionUID = 1L;
    // 患者id
    private String id;
    // 患者姓名
    private String userName;
    // 手机号码
    private String phoneNo;
    // 创建时间
    private String createTime;
    // 创建人
    private String createAuthor;
    // 账户id
    private String accountId;
    // 出生日期
    private String birthday;
    // 预产期
    private String expectedDay;
    // 孕周
    private int pregnancyDay;
    // 性别
    private String gender;
    // 患者头像路径
    private String iconPath;
    // 身份证号码
    private String idCard;
    // 住院号
    private String hospitalNo;
    // 患者类型 1：宝宝 2：孕产妇 3：其他疾病患者
    private String userType;
    // 患者建档信息来源 1：扫码建档 2：门诊建档 3：his系统数据拉取 4：乐慧微信录入
    private String sourceType;
    // 患者姓氏
    private String firstName;
    // 患者状态
    private String userStatus;
    // 更新时间
    private String updateTime;
    // 档案编号
    private String fileNo;
    // 扩展字段1
    private String extendInfo1;
    // 扩展字段2
    private String extendInfo2;
    // 扩展字段3
    private String extendInfo3;
    // 患者关联id 宝宝关联母亲id，母亲关联宝宝id
    private String relevantId;
    // 微信id
    private String wechat_id;
    // 租户id
    private String tenantId;
    // 汉语拼音
    private String namePinyin;
    // 汉语拼音简拼
    private String nameInitial;
    // app是否激活，0表示未激活，1表示已激活
    private String appActFlag;

    public String getWechat_id() {
        return wechat_id;
    }

    public void setWechat_id(String wechat_id) {
        this.wechat_id = wechat_id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setCreateTime(String createTime) {
        this.createTime = DateUtil.getTimeStampSec(createTime);
    }

    public String getCreateTime() {
        return createTime;
    }

    public String getCreateAuthor() {
        return createAuthor;
    }

    public void setCreateAuthor(String createAuthor) {
        this.createAuthor = createAuthor;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setExpectedDay(String expectedDay) {
        this.expectedDay = expectedDay;
    }

    public String getExpectedDay() {
        return expectedDay;
    }

    public void setPregnancyDay(int pregnancyDay) {
        this.pregnancyDay = pregnancyDay;
    }

    public int getPregnancyDay() {
        return pregnancyDay;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getGender() {
        return gender;
    }

    public void setIconPath(String iconPath) {
        this.iconPath = iconPath;
    }

    public String getIconPath() {
        return iconPath;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setHospitalNo(String hospitalNo) {
        this.hospitalNo = hospitalNo;
    }

    public String getHospitalNo() {
        return hospitalNo;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getUserType() {
        return userType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setUserStatus(String userStatus) {
        this.userStatus = userStatus;
    }

    public String getUserStatus() {
        return userStatus;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = DateUtil.getTimeStampSec(updateTime);
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public String getFileNo() {
        return fileNo;
    }

    public void setFileNo(String fileNo) {
        this.fileNo = fileNo;
    }

    public void setExtendInfo2(String extendInfo2) {
        this.extendInfo2 = extendInfo2;
    }

    public String getExtendInfo2() {
        return extendInfo2;
    }

    public void setExtendInfo3(String extendInfo3) {
        this.extendInfo3 = extendInfo3;
    }

    public String getExtendInfo3() {
        return extendInfo3;
    }

    public String getRelevantId() {
        return relevantId;
    }

    public void setRelevantId(String relevantId) {
        this.relevantId = relevantId;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

	public String getNamePinyin() {
		return namePinyin;
	}

	public void setNamePinyin(String namePinyin) {
		this.namePinyin = namePinyin;
	}

	public String getNameInitial() {
		return nameInitial;
	}

	public void setNameInitial(String nameInitial) {
		this.nameInitial = nameInitial;
    }

    public String getAppActFlag() {
        return appActFlag;
    }

    public void setAppActFlag(String appActFlag) {
        this.appActFlag = appActFlag;
    }

    public String getExtendInfo1() {
        return extendInfo1;
    }

    public void setExtendInfo1(String extendInfo1) {
        this.extendInfo1 = extendInfo1;
    }
}
